import openai
from hetong.config.config import model_id,url
# Assume that the model is already launched.
# The api_key can't be empty, any string is OK.
client = openai.Client(api_key="wefewfewfewf", base_url=url+"/v1")
data = client.chat.completions.create(
    model=model_id,
    messages=[
        {
            "content": "背诵一下李白的静夜思",
            "role": "user",
        }
    ],
    max_tokens=1024
)
print(data)